--
-- DESCRIPTION
--
-- @COMPANY **
-- @AUTHOR **
-- @DATE ${date} ${time}
--

---@type AIC_C
local M = UnLua.Class()
local Screen = require "Screen"
local Debug = require "Debug"

-- function M:Initialize(Initializer)
-- end

-- function M:UserConstructionScript()
-- end

function M:ReceiveBeginPlay()
	local BehaviorTree = UE.UObject.Load("/Game/Game/AI/BT")
	self:RunBehaviorTree(BehaviorTree)
  -- local BB = UE.UAIBlueprintHelperLibrary.GetBlackboard(self)
  -- Screen.Print(type(BB))
  -- Blackboard:SetValueAsVector("TargetLoc", UE.FVector(0,0,0))

end

-- function M:ReceiveEndPlay()
-- end

function M:ReceiveTick(DeltaSeconds)
  -- Screen.Print("AIC tick...")
  local offset = UE.FVector(50, 0, 0) * DeltaSeconds
  -- self:K2_GetPawn():K2_AddActorLocalOffset(offset, false, nil, false)
  -- AIMoveTo
end

-- function M:ReceiveAnyDamage(Damage, DamageType, InstigatedBy, DamageCauser)
-- end

-- function M:ReceiveActorBeginOverlap(OtherActor)
-- end

-- function M:ReceiveActorEndOverlap(OtherActor)
-- end

return M
